// import Vue from 'vue'
// import Router from 'vue-router'
//
//组件模块
import flightAnalysis from '../views/flight-analysis'
// import flightPredict from '../views/flight-predict-modal'
// import styleDesign from '../views/style-design'
// import formation from '../views/formation'
// import situationRealtime from '../views/situation-realtime'
// import  situationHistory from  '../views/situation-history'
// import  predict2 from  '../views/predict2'
// import  predict1 from  '../views/predict1'

import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const route = new Router({
    mode: 'hash',
    base: '',
    routes: [
        { path: '/', name: '/', component: flightAnalysis },
        // { path: '/flightAnalysis', name: 'flightAnalysis', component: flightAnalysis },
        // { path: '/flightPredict', name: 'flightPredict', component: flightPredict },
        // { path: '/styleDesign', name: 'styleDesign', component: styleDesign },
        // { path: '/formation', name: 'formation', component: formation },
        // { path: '/situationRealtime', name: 'situationRealtime', component: situationRealtime },
        // { path: '/situationHistory', name: 'situationHistory', component: situationHistory },
        // { path: '/predict2', name: 'predict2', component: predict2 },
        // { path: '/predict1', name: 'predict1', component: predict1 },
    ]
})
const routerPush = Router.prototype.push;
Router.prototype.push = function push(location) {
    return routerPush.call(this, location).catch(error=> error)
}
export default route;
